/*
 * @Author: your name
 * @Date: 2021-03-10 17:21:48
 * @LastEditTime: 2021-03-25 11:44:08
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \vue-glshaop-client\src\main.js
 */
import Vue from 'vue'
import App from '@/App.vue'
import router from '@/router'
import TypeNav from '@/components/TypeNav'
import store from '@/store'
import '@/mock/mockServe'
import 'swiper/css/swiper.css'
import SlideShow from '@/components/SlideShow'
import Pagination from '@/components/Pagination'
import * as API from '@/api'



import { Message, MessageBox } from 'element-ui'
Vue.prototype.$msgbox = MessageBox;
Vue.prototype.$alert = MessageBox.alert;
Vue.prototype.$message = Message;
// import '@/api' //测试接口数据
Vue.config.productionTip = false
Vue.component(TypeNav.name, TypeNav)
Vue.component(SlideShow.name, SlideShow)
Vue.component(Pagination.name, Pagination)
new Vue({
  beforeCreate () {
    Vue.prototype.$bus = this //安装全局时间总线
    Vue.prototype.$API = API
  },
  render: h => h(App),
  store,
  router
}).$mount('#app')
